home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / redhat-RHSA-2004-689.nasl < prev    next >
Text File  |  2005-01-14  |  3KB  |  107 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. #
  5. # The text of this plugin is (C) Red Hat Inc.
  6.  
  7. if ( ! defined_func("bn_random") ) exit(0);
  8. if(description)
  9. {
  10.  script_id(16054);
  11.  script_version ("$Revision: 1.1 $");
  12.  script_cve_id("CAN-2004-0565", "CAN-2004-1016", "CAN-2004-1017", "CAN-2004-1137", "CAN-2004-1144", "CAN-2004-1234");
  13.  
  14.  name["english"] = "RHSA-2004-689:   kernel";
  15.  
  16.  script_name(english:name["english"]);
  17.  
  18.  desc["english"] = '
  19.  
  20.   Updated kernel packages that fix several security issues in Red Hat
  21.   Enterprise Linux 3 are now available.
  22.  
  23.   The Linux kernel handles the basic functions of the operating system.
  24.  
  25.   This advisory includes fixes for several security issues.
  26.  
  27.   All Red Hat Enterprise Linux 3 users are advised to upgrade their
  28.   kernels to the packages associated with their machine architectures
  29.   and configurations as listed in this erratum.
  30.  
  31.  
  32.  
  33.  
  34. Solution : http://rhn.redhat.com/errata/RHSA-2004-689.html
  35. Risk factor : High';
  36.  
  37.  script_description(english:desc["english"]);
  38.  
  39.  summary["english"] = "Check for the version of the   kernel packages";
  40.  script_summary(english:summary["english"]);
  41.  
  42.  script_category(ACT_GATHER_INFO);
  43.  
  44.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  45.  family["english"] = "Red Hat Local Security Checks";
  46.  script_family(english:family["english"]);
  47.  
  48.  script_dependencies("ssh_get_info.nasl");
  49.  
  50.  script_require_keys("Host/RedHat/rpm-list");
  51.  exit(0);
  52. }
  53.  
  54. include("rpm.inc");
  55. if ( rpm_check( reference:"kernel-2.4.21-27.0.1.EL", release:"RHEL3") )
  56. {
  57.  security_hole(0);
  58.  exit(0);
  59. }
  60. if ( rpm_check( reference:"kernel-BOOT-2.4.21-27.0.1.EL", release:"RHEL3") )
  61. {
  62.  security_hole(0);
  63.  exit(0);
  64. }
  65. if ( rpm_check( reference:"kernel-doc-2.4.21-27.0.1.EL", release:"RHEL3") )
  66. {
  67.  security_hole(0);
  68.  exit(0);
  69. }
  70. if ( rpm_check( reference:"kernel-hugemem-2.4.21-27.0.1.EL", release:"RHEL3") )
  71. {
  72.  security_hole(0);
  73.  exit(0);
  74. }
  75. if ( rpm_check( reference:"kernel-smp-2.4.21-27.0.1.EL", release:"RHEL3") )
  76. {
  77.  security_hole(0);
  78.  exit(0);
  79. }
  80. if ( rpm_check( reference:"kernel-smp-unsupported-2.4.21-27.0.1.EL", release:"RHEL3") )
  81. {
  82.  security_hole(0);
  83.  exit(0);
  84. }
  85. if ( rpm_check( reference:"kernel-source-2.4.21-27.0.1.EL", release:"RHEL3") )
  86. {
  87.  security_hole(0);
  88.  exit(0);
  89. }
  90. if ( rpm_check( reference:"kernel-unsupported-2.4.21-27.0.1.EL", release:"RHEL3") )
  91. {
  92.  security_hole(0);
  93.  exit(0);
  94. }
  95.  
  96. if ( rpm_exists(rpm:"  kernel-", release:"RHEL3") )
  97. {
  98.  set_kb_item(name:"CAN-2004-0565", value:TRUE);
  99.  set_kb_item(name:"CAN-2004-1016", value:TRUE);
  100.  set_kb_item(name:"CAN-2004-1017", value:TRUE);
  101.  set_kb_item(name:"CAN-2004-1137", value:TRUE);
  102.  set_kb_item(name:"CAN-2004-1144", value:TRUE);
  103.  set_kb_item(name:"CAN-2004-1234", value:TRUE);
  104. }
  105.  
  106. set_kb_item(name:"RHSA-2004-689", value:TRUE);
  107.